package com.douqu.game.core.entity.world.map;

import com.douqu.game.core.entity.EntityObject;
import com.douqu.game.core.entity.battle.BattleInitParamWorldMap;

/**
 * 异常结束战斗的数据
 * @Author: Bean
 * @Description:
 * @Date: 2018-09-05 20:22
 */
public class ErrorEndParam extends EntityObject {

    private String playerIndex;

    private String targetIndex;

    /**
     * 有值表示是单人战场
     */
    private String masterIndex;

    private int cityId;

    public ErrorEndParam() {
    }

    public ErrorEndParam(String playerIndex, String targetIndex, BattleInitParamWorldMap initParam)
    {
        this.playerIndex = playerIndex;
        this.targetIndex = targetIndex;
        this.masterIndex = initParam.getMasterPlayerIndex();
        this.cityId = initParam.getCityId();
    }

    public String getPlayerIndex() {
        return playerIndex;
    }

    public void setPlayerIndex(String playerIndex) {
        this.playerIndex = playerIndex;
    }

    public String getTargetIndex() {
        return targetIndex;
    }

    public void setTargetIndex(String targetIndex) {
        this.targetIndex = targetIndex;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getMasterIndex() {
        return masterIndex;
    }

    public void setMasterIndex(String masterIndex) {
        this.masterIndex = masterIndex;
    }

    @Override
    public String toString() {
        return "{" +
                "playerIndex='" + playerIndex + '\'' +
                ", targetIndex='" + targetIndex + '\'' +
                ", masterIndex='" + masterIndex + '\'' +
                ", cityId=" + cityId +
                "} ";
    }
}
